				<table cellpadding="2" cellspacing="0" width="100%" height="300">
					<? /*
					<tr style="background-image: url(images/tbl_th.png);color:#FFFFFF" align="center" height="20">
						<td colspan="3">Member Login </td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td colspan="3"><br></td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Login Name</td><td>:</td><td><input type="text" size="15" maxlength="15" class="text"></td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td>Password</td><td>:</td><td><input type="password" size="15" maxlength="15" class="text"></td>
					</tr>
					<tr bgcolor="#FFFFFF">
						<td colspan="3"><br></td>
					</tr>
					*/ ?>
					
					<?
						$getadv=mysql_query("select * from chi_advertisement where status=1 and end_date>now() order by rand() limit 5");
						
					?>
							<?
								if(mysql_num_rows($getadv)>0)
								{
							?>
							<tr style="background-image: url(images/tbl_th.png);color:#FFFFFF" align="center" height="20">
								<td colspan="3" valign="top">Advertiser</td>
							</tr>
							<tr>
								<td colspan="3" align="center" valign="top">
							<?
									while($adv=mysql_fetch_array($getadv,MYSQL_ASSOC))
									{
							?>
							<a href="<?= $adv['url'] ?>" target="<?= $adv['target'] ?>"><img src="images/advertisement/<?= $adv['pic'] ?>.gif" width="140" height="80" alt="<?= $adv['name'] ?>" border="0"></a>
							<br><br>
							<? 
									}
								}
								 
							?>
						</td>
					</tr>
				</table>